

import requests

from utitls.UaUtils import get_user_agent

if __name__ == '__main__':
    headers = {'User-Agent': get_user_agent()}
    img_url = 'https://www.tandfonline.com/cms/asset/9d4de4b5-95fe-457d-b13f-d39e9545f4c3/hmep20.v026.i06.cover.jpg'
    res = requests.get(url=img_url, headers=headers, verify=False, timeout=10)
    print(res.status_code)
    print(res.text)

